//
//  DeviceItem.m
//  xychain_DM_iOS
//
//  Created by Jpwang on 2018/5/26.
//  Copyright © 2018年 Jpwang. All rights reserved.
//

#import "DeviceItem.h"


@implementation RomUpgradePlan
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"changeLog":@"changeLog",
             @"version":@"version"
             };
}
@end

@implementation Clinets
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"ip":@"ip",
             @"mac":@"mac"
             };
}
@end

@implementation Disks
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"diskId":@"id",
             @"storage":@"storage",
             @"storageUsed":@"storageUsed",
             @"status":@"status",
             @"statusTips":@"statusTips"
             };
}
@end

@implementation DeviceState
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"appVersion":@"appVersion",
             @"clients":@"clients",
             @"cpuLoad":@"cpuLoad",
             @"disks":@"disks",
             @"downMaxSpeed":@"downMaxSpeed",
             @"downSpeed":@"downSpeed",
             @"ip":@"ip",
             @"macAddr":@"macAddr",
             @"memory":@"memory",
             @"memoryUsed":@"memoryUsed",
             @"miningState":@"miningState",
             @"miningSwitch":@"miningSwitch",
             @"romVersion":@"romVersion",
             @"timestamp":@"timestamp",
             @"upMaxSpeed":@"upMaxSpeed",
             @"upSpeed":@"upSpeed"
             };
}
@end


@implementation DeviceItem
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"deviceId":@"id",
             @"createTime":@"createTime",
             @"updateTime":@"updateTime",
             @"uid":@"uid",
             @"sn":@"sn",
             @"mac":@"mac",
             @"romVersion":@"romVersion",
             @"deviceType":@"deviceType",
             @"lastOnlineTime":@"lastOnlineTime",
             @"firstOnline":@"firstOnline",
             @"deviceState":@"deviceState",
             @"label":@"label",
             @"deviceOnlineState":@"deviceOnlineState",
             @"romUpgradePlan":@"romUpgradePlan"
             };
}
@end

